-- GENERATED SPELL FOR [Spirit of the Lynx] --


function spell0_24143(pUnit, Event) --@Lynx Flurry,Self--
pUnit:FullCastSpellOnTarget(43290,pUnit)
pUnit:RegisterEvent('Sorts_24143', 8271, 1)
end

function spell1_24143(pUnit, Event) --@Shred Armor,n/a--
pUnit:FullCastSpellOnTarget(43243,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_24143', 8309, 1)
end

function Sorts_24143(pUnit, Event)
local choix_sorts_24143 = math.random(0, 1)
if choix_sorts_24143 == 0 then
pUnit:RegisterEvent('spell0_24143', 1, 1)
end
if choix_sorts_24143 == 1 then
pUnit:RegisterEvent('spell1_24143', 1, 1)
end
end

function mob24143_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_24143', math.random(1500, 3000), 1)
end

function mob24143_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24143_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob24143_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(24143, 1, 'mob24143_Action')
RegisterUnitEvent(24143, 2, 'mob24143_Leave')
RegisterUnitEvent(24143, 3, 'mob24143_Kill')
RegisterUnitEvent(24143, 4, 'mob24143_Die')
